package com.gxa.controller;


import com.gxa.common.R;
import com.gxa.service.CustomerTypeService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@Api(value = "测试",tags = "事务测试接口")
@RequestMapping("/test")
public class TestController {
    @Autowired
    private CustomerTypeService customerTypeService;
    @RequestMapping(value = "/test",method = RequestMethod.POST)
    @ApiOperation(value = "其他收支报表查询接口",notes = "其他收支",httpMethod = "get", response = String.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R queryOtherincomeandexpenditureReport(@RequestBody @ApiParam(name = "map",value = "参数集合") Map map){
            R r=new R();
        return customerTypeService.addCustomerType(map);
    }
}
